<script setup lang="ts">

</script>
<template>
    <div class="add-card">
      <header class="add-header">
        <el-page-header content="增加月卡" @back="$router.back()" />
      </header>
      <main class="add-main">
        <div class="form-container">
          <div class="title">车辆信息</div>
          <div class="form">
            <el-form label-width="100px">
              <el-form-item label="车主姓名">
                <el-input />
              </el-form-item>
              <el-form-item label="联系方式">
                <el-input />
              </el-form-item>
              <el-form-item label="车辆号码">
                <el-input />
              </el-form-item>
              <el-form-item label="车辆品牌">
                <el-input />
              </el-form-item>
            </el-form>
          </div>
        </div>
        <div class="form-container">
          <div class="title">最新一次月卡缴费信息</div>
          <div class="form">
            <el-form label-width="100px">
              <el-form-item label="有效日期">
                <el-date-picker value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期"
                  end-placeholder="结束日期" />
              </el-form-item>
              <el-form-item label="支付金额">
                <el-input />
              </el-form-item>
              <el-form-item label="支付方式">
                <el-select>
                  <!-- <el-option v-for="item in [{}]" :key="item.id" :value="item.id" :label="item.name" /> -->
                </el-select>
              </el-form-item>
            </el-form>
          </div>
        </div>
  
      </main>
      <footer class="add-footer">
        <div class="btn-container">
          <el-button>重置</el-button>
          <el-button type="primary">确定</el-button>
        </div>
      </footer>
    </div>
  </template>
  
  <script lang="ts" setup>
  </script>
  
  <style scoped lang="scss">
  .add-card {
    background-color: #f4f6f8;
    height: 100vh;
  
    .add-header {
      display: flex;
      align-items: center;
      padding: 0 20px;
      height: 64px;
      background-color: #fff;
  
      .left {
        span {
          margin-right: 4px;
        }
  
        .arrow {
          cursor: pointer;
        }
      }
  
      .right {
        text-align: right;
      }
    }
  
    .add-main {
      background: #f4f6f8;
      padding: 20px 130px;
  
      .form-container {
        background-color: #fff;
  
        .title {
          height: 60px;
          line-height: 60px;
          padding-left: 20px;
        }
  
        .form {
          margin-bottom: 20px;
          padding: 20px 65px 24px;
  
          .el-form {
            display: flex;
            flex-wrap: wrap;
  
            .el-form-item {
              width: 50%;
            }
          }
        }
      }
  
      .preview {
        img {
          width: 100px;
        }
      }
    }
  
    .add-footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding: 24px 50px;
      color: #000000d9;
      font-size: 14px;
      background: #fff;
      text-align: center;
    }
  }
  </style>